import * as vscode from 'vscode';
import { ChatViewProvider } from './chatViewProvider';
import { ChatManager } from './chatManager';

export function activate(context: vscode.ExtensionContext) {
    // 创建聊天管理器实例
    const chatManager = new ChatManager();
    
    // 创建并注册视图提供器
    const chatViewProvider = new ChatViewProvider(context.extensionUri, chatManager);
    
    context.subscriptions.push(
        vscode.window.registerWebviewViewProvider(
            'aiChatView',
            chatViewProvider
        )
    );
}

export function deactivate() {}
    